/*
 * @Author: MiNine
 * @Date: 2020-09-18 17:14:05
 * @LastEditors: 岸舟
 * @LastEditTime: 2020-09-19 11:13:01
 * @Description: 保险分类
 */
const {
  Schema,
  model
} = require('mongoose');

const insureSortSchema = new Schema({
  //类别名
  sortName: String,
  //所含保险产品List
  includeProductList:[{
    type: Schema.Types.ObjectId,
    ref: 'InsureProduct'
  }]
}, {
  versionKey: false
})

const InsureSort = model('InsureSort', insureSortSchema);

module.exports.InsureSort = InsureSort;